package vaccine.appointment.system.inventory.mq;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

@RabbitListener(queues = "LowInventoryCapacityQueue")
public class Consumer {

    @RabbitHandler
    public void LowInventoryCapacityHandler(Message message) {
        //校验合法性

        //如果库存低下则发送消息提醒补货
    }
}
